package cn.tedu.ivos.vehicle.mapper;

import cn.tedu.ivos.vehicle.pojo.dto.VehicleQuery;
import cn.tedu.ivos.vehicle.pojo.entity.Vehicle;
import cn.tedu.ivos.vehicle.pojo.vo.VehicleVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author liyuehui
 * @time 2024/7/10 9:11
 */
@Repository
public interface VehicleMapper {
    /**
     * 查询车辆
     * return: List<VehicleVO>
     */
    List<VehicleVO> selectVehicle(VehicleQuery vehicleQuery);

    /**
     * 新增车辆
     * return: int
     */
    int insertVehicle(Vehicle vehicle);

    /**
     * 修改车辆
     * return: int
     */
    int updateVehicle(Vehicle vehicle);

    /**
     * 删除车辆
     * return: int
     */
    int deleteVehicle(Long id);

    /**
     * 解绑车辆
     * return: int
     */
    int updateNullValue(Vehicle vehicle);

    /**
     * 查询车辆数量
     * return: int
     */
    int selectVehicleCount(VehicleQuery vehicleQuery);
}
